//
//  BSDetailViewController.h
//  HonlivApp
//
//  Created by admin on 2017/6/24.
//  Copyright © 2017年 honliv. All rights reserved.
//

#import <WebKit/WebKit.h>
#import "BaseViewController.h"
#import "DetailViewModel.h"
#import "UIViewController+BackButtonHandler.h"


@class User;

//获取动态码接口
//NSString *const Rediect_url = @"api/Commn/RediectToPage";
//公司跳转详情
static NSString *const detail_url = @"http://www.honliv.com/lkoa/mobile/RediectToPage.aspx?";
//医院
static NSString *const HPdetail_url = @"http://www.honlivhp.com/lkoa/mobile/RediectToPage.aspx?";
//医院体检单独的
static NSString *const detail_healthy_url = @"http://www.honlivhp.com/lkoa/mobile/RediectToPage.aspx?";

static NSString *const indicateOAQJ_url = @"Mobile_OA_IN/qjsq/kq_qjsq.aspx?Userid=parm1";
static NSString *const indicateOAPJ_url = @"Mobile_OA_IN/qjsp/qjsp_list.aspx?Userid=parm1";
static NSString *const indicateOAMAIL_url = @"Mobile_OA_IN/Mobile_Mail/Mail_Index.aspx?Userid=parm1";
//企业邮箱
static NSString *const indicateQQMAIL_url = @"../Employee/Login_MailBox.aspx";
//static NSString *const indicateNews_url = @"Mobile_News/Mobile_New_Info.aspx";
//static NSString *const indicateOffice_url = @"Mobile_Main.aspx";
//通讯录
//static NSString *const indicatePhoneBook_url = @"apptxl/index.aspx";

typedef void (^GetURL)(NSString *url);

@interface BSDetailViewController : BaseViewController<WKNavigationDelegate>

@property (nonatomic,strong) DetailViewModel *viewModel;

@property (nonatomic,strong) User *user;

@property (nonatomic,strong) WKWebView *webView;

-(void)loadRequestURL:(void(^)(GetURL))doGet;

-(void)createBackBtn;
-(void)closeWebView;
@end
